//
//  OAResourceDetailsVC.m
//  OA项目
//
//  Created by innofive on 2018/5/12.
//  Copyright © 2018年 inno. All rights reserved.
//

#import "OAResourceDetailsVC.h"
#import "OAApprovelistCell.h"
@interface OAResourceDetailsVC ()

@end

@implementation OAResourceDetailsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    NSArray *arr = @[@{@"name1":@"资源编号",@"name2":@"F515561616"},
                     @{@"name1":@"资源名称",@"name2":@"工程咨询单位资格"},
                     @{@"name1":@"机构名称",@"name2":@"广州发展圣诞节哦大家哦围巾冬季啊我家哦"},
                     @{@"name1":@"发证机关",@"name2":@"中华人民共和国国家发展改革委员会"},
                     @{@"name1":@"事由",@"name2":@"加班调休"},
                     @{@"name1":@"发证时间",@"name2":@"2017-11-29"},
                     @{@"name1":@"有效期",@"name2":@"2017-11-30"},
                     @{@"name1":@"上传附件",@"name2":@""},
                     @{@"name1":@"",@"name2":@""},
                     ];
    
    [self.dataArr addObjectsFromArray:arr];
    
    
}

-(void)onLoadViewByWillAppear:(UIView *)view
{
    [self.tableView config:^(UITableView *tableView) {
        [tableView setSeparatorMan];
    }];
}

#pragma mark - 点击方法

-(MCCellInfo *)tableView:(UITableView *)tableView cellForIndexPath:(NSIndexPath *)indexPath IsHeight:(BOOL)isheight
{
    
    if (indexPath.row==self.dataArr.count-1) {
        
        return [MCCellInfo configForCellId:cell2 Class:[OADissentComplaintsDetailsCell class] Height:kFitH(100) TableView:tableView];
    }
    return [MCCellInfo configForCellId:cell Class:[OADissentComplaintsDetails1Cell class] Height:kFitH(40) TableView:tableView];
    
}

@end
